{extend name="base"}
{block name="title"}渠道开服查询{/block}
{block name="head"}
<style>
.border-table{font-size:12px; color:#666;}
.border-table tbody th{text-align:center;color: #0C0C0C;}
.border-table th, .border-table td{text-align:center; padding:0 4px;}
</style>
{/block}
{block name="body"}
<body class="mainbody">
<form>
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i class="iconfont icon-up"></i><span>返回上一页</span></a>
  <a href="{:url('index/home')}" class="home"><i class="iconfont icon-home"></i><span>首页</span></a>
  <i class="arrow iconfont icon-arrow-right"></i>
  <span>渠道开服查询</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"><i class="iconfont icon-more"></i></a>
      <div class="l-list">
        <div class="menu-list">
          <div class="rule-single-select">
            <select name="channel" style="display:none">
              {volist name="CHANNELS" id='val'}
              <option value="{$key}"{eq name="channel" value="$key"} selected{/eq}>[{$key}]{$val.Name}</option>
              {/volist}
            </select>
          </div>
          <div class="rule-single-select">
            <select name="kind" style="display:none">
              <option value="0">===所有游戏===</option>
              {volist name="GAME_KIND" id="val"}
              <option value="{$key}"{eq name="kind" value="$key"} selected{/eq}>[{$key}]{$val}</option>
              {/volist}
            </select>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

<div class="table-container">
  <table class="ltable border-table">
    <tr>
      <th>&nbsp;</th>
      <th colspan="2">渠道</th>
      <th colspan="3">服务</th>
      <th colspan="3">游戏</th>
      <th rowspan="2">创建时间/更新时间</th>
      <th rowspan="2" >操作</th>
    </tr>
    <tr>
      <th>#</th>
      <th>ID</th>
      <th>名称</th>
      <th>ID</th>
      <th>名称</th>
      <th>端口</th>
      <th>ID</th>
      <th>名称</th>
      <th>连接数</th>

    </tr>
  {empty name="list"}
    <tr><td colspan="11">Oh~{$error}!</td></tr>
  {else/}
    {volist name="list" key="k" id="v"}

    <tr>
      <td>{$k}</td>
      <td>{$v.Channel}</td>
      <td>{$CHANNELS[$v.Channel]['Name'] ?? '--'}</td>
      <td>{$v.ServerID}</td>
      <td>{$v.RoomNameCN}</td>
      <td>{$v.Addr}</td>
      <td>{$v.KindID}</td>
      <td>{$GAME_KIND[$v.KindID]='十三' ? '13斗地主' : $GAME_KIND[$v.KindID]}</td>
      <td>{$v.LinksNumber}</td>
      <td>{$v.StartTime}<br/>{$v.NowTimer|date="Y-m-d H:i:s",###}</td >
      <td ><a href="javascript:;">查看</a></td>
    </tr>

    {/volist}
  {/empty}
  </table>
</div>



</form>
</body>
{/block}